package com.finace.money.di.module;

import com.finace.money.data.MainNewsModel;
import com.finace.money.data.http.ApiService;
import com.finace.money.presenter.contract.MainNewsContract;

import dagger.Module;
import dagger.Provides;

/**
 * Created by zhangpeng on 2018/1/27.
 */

@Module
public class MainNewsModule {

    public MainNewsContract.View mView;

    public MainNewsModule(MainNewsContract.View mView) {
        this.mView = mView;
    }

    @Provides
    public MainNewsContract.IMainNewsModel provideModel(ApiService apiService){
        return new MainNewsModel(apiService);
    }

    @Provides
    public MainNewsContract.View provideView(){
        return mView;
    }
}
